Applet Security Structure
When you instantiate an applet using the
JMNewAppletViewer
function
JMNewAppletViewer
, you must pass a data structure that supplies security information for the applet. This data structure is defined by the
JMAppletSecurity
data type.
struct JMAppletSecurity {
UInt32 fVersion;
JMNetworkSecurityOptions fNetworkSecurity;
JMFileSystemOptions fFileSystemSecurity;
Boolean fRestrictSystemAccess;
Boolean fRestrictSystemDefine;
Boolean fRestrictApplicationAccess;
Boolean fRestrictApplicationDefine;
};
Field descriptions
-
fVersion
-
The version of JManager. You should set this field to
kJMVersion
.
-
JMNetworkSecurityOptions
-
A flag indicating access privileges for applets connecting to networks. See
Applet Security Indicators for a list of possible values for this field.
-
JMFileSystemOptions
-
A flag indicating applet access privileges to the local file system. See
Applet Security Indicators for a list of possible values for this field.
-
fRestrictSystemAccess
-
If set to true, the applet cannot access system packages found in the
mrj.security.system.access
property. (The default packages in the property are
com.apple.*
and
sun.*
.)
-
fRestrictSystemDefine
-
If set to true, the applet cannot load system packages found in the
mrj.security.system.define
property. (The default packages in the property are
com.apple.*
and
sun.*
.)
-
fRestrictApplicationAccess
-
If set to true, the applet cannot access application packages found in the
mrj.security.application.access
property.
-
fRestrictApplicationDefine
-
If set to true, the applet cannot load application packages found in the
mrj.security.application.define
property.
© 1998 Apple Computer, Inc. — (Last Updated 3 Dec 98)